import axios from "axios";
export default { 
    namespaced: true,
    state:{
        messageList:[
            { name: '000', type: '新门店申请', status: '申请中' },  
            { name: '000', type: '门店管理员申请', status: '已通过' },
            { name: '333', type: '注销门店申请', status: '已通过' }, 
            { name: '444', type: '新门店申请', status: '申请中' }
        ]
    },
    getters:{},
    mutations:{
        getList(state,data){ 
            // state.messageList = data;
        },
    },
    actions: {
        getApplyList(context){
            axios
            .get('/apply/getApply')
            .then(res => {
                console.log(res.data)
                context.commit('getList',res.data)
            })
        }
    }
}